<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib prefix="s" uri="/struts-tags"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>/user/login_info.jsp">
		<script type="text/javascript" src="/edu/js/jquery-1.9.1.min.js"></script>
		<script type="text/javascript">
	function register() {
		window.parent.location.href = "/edu/user/register.html";
	}
	function login() {
		window.parent.location.href = "/edu/user/login.html";
	}
	function logout() {
		$.ajax( {
			url : "/edu/user/logout",
			type : "POST",
			async: false,
			dataType : "json",
			success : function(data) {
				location.reload(true);
			}
		});
	}
</script>
	</head>
	<body>
		<span style="font-size: 12px;"> <s:if
				test="%{#session.user_name != null}">
				<b>您好 ，<span style="color: green">${user_name}</span>！欢迎来到大爱优能教育！</b>
		[&nbsp;<a href="#" onclick="logout()"
>登出</a>&nbsp;]
		
	</s:if> <s:if test="%{#session.user_name == null}">
				<b>您好,欢迎光临大爱优能教育,请</b>
		[&nbsp;<a href="#" onclick="login()"
>登录</a>|<a href="#"
					onclick="register()"
>注册</a>&nbsp;]
	</s:if> </span>
	</body>
</html>
